package practice;

import java.util.Scanner;

public class practice011 {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		try {
				
		} finally {
			scanner.close();
		}
	}

	private static final String HYDRO = "hydro";
	private static final String IC = "ic";

	private static final String NONMETAL_ACID = "non-metal acid";
	private static final String POLYATOMIC_ACID = "polyatomic acid";
	private static final String NOT_AN_ACID = "not an acid";

	public static void acidNaming(String name) {
		if (name.startsWith(HYDRO) && name.endsWith(IC)) {
			System.out.println(NONMETAL_ACID);
		} else if (name.endsWith(IC)) {
			System.out.println(POLYATOMIC_ACID);
		} else {
			System.out.println(NOT_AN_ACID);
		}
	}
}
